import { Dimensions } from 'react-native'; dimensions: { width: Dimensions.get('window').width, height: Dimensions.get('window').height }